package com.dt.dubai.sys.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 系统用户信息表
 */

@Data
@Table(name = "dt_sys_admin_info")
@EqualsAndHashCode(callSuper = false)
public class SysAdminInfoEntity extends BaseEntity {

    //用户登录记录ID
    @NotNull(message = "adminLoginRecordId参数不能为空")
    Long adminLoginRecordId;

    //真实姓名
    @Length(min = 0, max = 30, message = "realNameZh参数最大长度不30")
    String realNameZh;

    //身份证号码
    @Length(min = 0, max = 18, message = "cardId参数最大长度不18")
    String cardId;

    //身份证正面地址
    @Length(min = 0, max = 36, message = "cardIdAddr参数最大长度不36")
    String cardIdAddr;

    //商户logo
    @Length(min = 0, max = 200, message = "merchantLogoUrl参数最大长度不200")
    String merchantLogoUrl;

    //营业执照号
    @Length(min = 0, max = 20, message = "businessLicenseNo参数最大长度不20")
    String businessLicenseNo;

    //营业执照地址
    @Length(min = 0, max = 36, message = "businessLicenseAddr参数最大长度不36")
    String businessLicenseAddr;

    //手机绑定
    @Length(min = 0, max = 11, message = "mobilePhoneBinding参数最大长度不11")
    String mobilePhoneBinding;


}
